package com.wang.hashtest;

import java.util.HashMap;
import java.util.Map;

//Streams API 单线程
public class HashMapTest6 {
    public static void main(String[] args) {
        Map<Integer,String > map = new HashMap<>();
        map.put(1,"java");
        map.put(2,"c++");
        map.put(3,"golang");
        map.put(4,"python");
        map.put(5,"php");

        map.entrySet().stream().forEach((entry) -> {
            System.out.print(entry.getKey());
            System.out.print(entry.getValue());
        });
    }
}
